package com.cqrcb.cloud.feign;///*

import com.cqrcb.cloud.config.annotation.CustomLogAnnotation;
import com.cqrcb.cloud.entity.api.req.Q;
import com.cqrcb.cloud.entity.api.res.R;
import com.cqrcb.cloud.entity.quota.io.MultiQuotaCtrlMarketMainIO;
import com.cqrcb.cloud.fallback.MultiQuotaCtrlMarketMainServiceFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author lengleng
 * <p>
 * example feign client
 */
@FeignClient(name = "marketing-quota-control",
		fallbackFactory = MultiQuotaCtrlMarketMainServiceFallbackFactory.class)
public interface MultiQuotaCtrlMarketMainServiceFeign {

//	/**
//	 * 调用服务提供方的输出接口.
//	 * @param str 用户输入
//	 * @return echo result
//	 */
//	@GetMapping("/echo-feign/{str}")
//	String echo(@PathVariable("str") String str);

	@PostMapping("/deduction")
	R deduction(@RequestBody Q<MultiQuotaCtrlMarketMainIO> multiQuotaCtrlMarketMainVoQ);

	@PostMapping("/user_quota/deduction2")
	R deduction2(@RequestBody Q<MultiQuotaCtrlMarketMainIO> multiQuotaCtrlMarketMainVoQ);
}
